﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using EShop.Core;
using EShop.Core.Model.Store;

namespace EShop.Services.Store
{
    public interface IBrand
    {
        /// <summary>
        /// 添加品牌
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int AddBrand(Brand model);
        /// <summary>
        /// 修改品牌
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool UpdateBrand(Brand model);
        /// <summary>
        /// 删除品牌
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelBrand(string id);

        IList<Brand> GetAllBrand(bool showHidden = false);
        /// <summary>
        /// 品牌分类
        /// </summary>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="fiter"></param>
        /// <returns></returns>
        IPagedList<Brand> GetAllBrand(int pageIndex, int pageSize, bool showHidden = false);
        /// <summary>
        ///获取一条品牌信息 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Brand GetBrandById(int id, bool showHidden);
    }
}
